import * as departmentApi from '@/api/department';
export default {
    namespaced: true,
    state: {
        departmentInfo: {},
    },
    mutations: {
        SET_DEPARTMENT_INFO(state, newValue) {
            state.departmentInfo = newValue
        }
    },
    actions: {
        async updateDepartment(context) {
            const res = await departmentApi.getDepartment()
            context.commit('SET_DEPARTMENT_INFO', res.data.data)
            console.log(res);
        },
    }
}